package com.example.shop.service;

import com.example.shop.model.Commodity;
import com.example.shop.utils.PageBean;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommodityService {
    List<Commodity> getCommodities();
    Commodity getCommodity(int id);
    PageBean<Commodity> getCommodity(int pageNo, int pageSize, String search);
}
